# Maintainer: Thomas Faughnan <tom@tjf.sh>
pkgname=tmux-resurrect
pkgver=4.0.0
pkgrel=0
pkgdesc="Persists tmux environment across system restarts"
url="https://github.com/tmux-plugins/tmux-resurrect"
arch="noarch"
license="MIT"
depends="tmux>=1.9 bash"
options="!check" # Tests rely on symlinks to another package, broken in releases
subpackages="$pkgname-doc"
source="https://github.com/tmux-plugins/tmux-resurrect/archive/v$pkgver/$pkgname-$pkgver.tar.gz
	ps.patch"

package() {
	mkdir -p "$pkgdir/usr/share/$pkgname"
	cp -r resurrect.tmux scripts/ strategies/ save_command_strategies/ \
		"$pkgdir/usr/share/$pkgname"

	mkdir -p "$pkgdir/usr/share/doc/$pkgname"
	install -m644 docs/* "$pkgdir/usr/share/doc/$pkgname"
}

sha512sums="
d7ceaec7bb7c2160f43b97f1c8a5315d5cf83a511531b13f93298cb4a3ae12cf0642cbbbb3b3e42acf674615b13d0003b6915abdc70751900ab24554cf181115  tmux-resurrect-4.0.0.tar.gz
a8f544910a58c48181ee7aceca0f008ba2a58d6768c0144bb23d44ef47eaa20581f22795cfa577b2767d2c5c996fd2cabd1d5e77ad6cae77f2d7927bd1f6c3aa  ps.patch
"
